<?php
get_header();
?>

</head>
<body>
<div id="header">
<h1>
   <span><?php bloginfo('name'); ?><br />
   <em><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('description'); ?></a></em>
   </span>
</h1>
<ul id="nav">
	  <li class="page_item"><a href="<?php echo get_settings('home'); ?>/" title="Home">Home</a></li>
	  <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
</ul>
</div>
<div id="content">
<div id="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!--post -->
  <div class="post" id="post-<?php the_ID(); ?>">   
      <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>				
        <div class="storycontent">
	    <?php the_content(__('(more...)')); ?>
		<?php if (the_tags()) : ?>
		<p>Tags: <?php the_tags('', ', ', ''); ?></p>
		<?php endif; ?>
        </div>
	  <ul class="date">
	    <li><?php the_time('j M Y') ?></li>
	    <li>Category: <?php the_category(',') ?></li>
        <li>Author: <?php the_author() ?> <?php edit_post_link(__('Edit This')); ?> <br /></li>
        <li class="comm"><?php wp_link_pages(); ?><?php comments_popup_link(__('{ Comments } <em>0</em>'), __(' { Comment } <em>1</em> '), __(' { Comments } <em> %</em> ')); ?></li>
	  </ul>
	  
  </div>

<!--post -->
<?php comments_template(); // Get wp-comments.php template ?>
    
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
      <div class="nextcontent">
<?php posts_nav_link(' &nbsp;&nbsp;&nbsp; ', __('&lt;&lt; Previous Page'), __('Next Page &gt;&gt;')); ?>
      </div>
 </div>   
   
 
<?php get_sidebar(); ?>
</div> 

<!-- closing main div -->
<?php get_footer(); ?>
        

